/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #0a0a15;
    color: #e0e0ff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 动态网格背景 */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(10, 10, 21, 0.9), rgba(10, 10, 21, 0.9)),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 255, 0.05) 2px, rgba(0, 255, 255, 0.05) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 255, 0.05) 2px, rgba(0, 255, 255, 0.05) 4px);
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* 容器样式 */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.8rem;
    color: #00f3ff;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.7);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
    }
    100% {
        text-shadow: 0 0 25px rgba(0, 243, 255, 1), 0 0 40px rgba(0, 243, 255, 0.5);
    }
}

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: #fff;
}

.logo-text h1 span {
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
}

.logo-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #8a8aff;
    margin-top: 5px;
}

.stats-container {
    display: flex;
    gap: 35px;
}

.stat {
    text-align: center;
    position: relative;
}

.stat::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f3ff, transparent);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: #8a8aff;
    letter-spacing: 1px;
}

.user-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    box-shadow: 0 0 15px rgba(0, 100, 255, 0.1);
}

.user-avatar {
    font-size: 1.8rem;
    color: #00f3ff;
}

.user-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ff00;
    box-shadow: 0 0 8px #00ff00;
}

.status-text {
    font-size: 0.85rem;
    color: #8a8aff;
}

/* 主要内容区域 */
.main-content {
    margin-bottom: 50px;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.title-highlight {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    position: relative;
}

.title-highlight::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff00ff, #00f3ff, transparent);
}

.section-subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    color: #8a8aff;
}

/* 直播卡片容器 */
.streams-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stream-card {
    background: linear-gradient(145deg, rgba(15, 25, 40, 0.9), rgba(5, 10, 20, 0.9));
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 150, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.stream-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 243, 255, 0.6);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 243, 255, 0.3);
}

.stream-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff00ff, #00f3ff);
    opacity: 0.7;
}

.stream-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stream-card:hover .stream-thumbnail img {
    transform: scale(1.05);
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.live-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.viewer-count {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stream-info {
    padding: 20px;
}

.stream-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.4;
}

.streamer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.streamer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 150, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.streamer-name {
    font-weight: 700;
    color: #8a8aff;
}

.stream-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: rgba(0, 100, 255, 0.2);
    color: #8a8aff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 100, 255, 0.3);
}

/* 权限提示弹窗 */
.permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 5, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.permission-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, rgba(15, 25, 40, 0.95), rgba(5, 10, 20, 0.95));
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff00ff, #00f3ff);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 150, 255, 0.2);
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #ff5555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #8a8aff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #ff5555;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-icon {
    font-size: 4rem;
    color: #ff5555;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 85, 85, 0.5);
}

.modal-body h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #8a8aff;
}

.access-level {
    color: #ffaa00;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.permission-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0, 30, 60, 0.5);
    border: 1px solid rgba(0, 150, 255, 0.2);
    transition: all 0.3s;
    cursor: pointer;
    min-width: 100px;
}

.option:hover {
    background: rgba(0, 50, 100, 0.7);
    border-color: rgba(0, 243, 255, 0.5);
    transform: translateY(-5px);
}

.option i {
    font-size: 1.8rem;
    color: #00f3ff;
}

.option span {
    font-size: 0.9rem;
    font-weight: 700;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 150, 255, 0.2);
    text-align: center;
}

.btn-secondary {
    background: linear-gradient(90deg, #ff00ff, #00f3ff);
    border: none;
    color: #000;
    padding: 12px 40px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.5);
}

/* 底部样式 */
.footer {
    background: rgba(5, 10, 20, 0.9);
    border-top: 1px solid rgba(0, 150, 255, 0.2);
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #00f3ff;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #00f3ff;
}

.status-item, .info-item, .quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #8a8aff;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: #00ff00;
    box-shadow: 0 0 8px #00ff00;
}

.status-dot.offline {
    background-color: #ff5555;
    box-shadow: 0 0 8px #ff5555;
}

.info-value {
    color: #00f3ff;
    font-weight: 700;
}

.quick-links a {
    text-decoration: none;
    color: #8a8aff;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: #00f3ff;
}

.quick-links a i {
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 150, 255, 0.1);
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header {
        flex-direction: column;
        gap: 25px;
    }
    
    .stats-container {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .streams-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .streams-container {
        grid-template-columns: 1fr;
    }
    
    .permission-options {
        flex-direction: column;
        align-items: center;
    }
}